/**
 * There are <a href="https://www.hdzhx.com">邯郸智讯</a> code generation
 */
package com.boxin.ims.modules.jiujiudevice.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.BaseEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 订单明细Entity
 * @author sxh
 * @version 2018-08-15
 */
@Entity
@Table(name = "jiu_order_log")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class JiuOrderLog extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	private Long id; 		// 编号
	/**设备使用开始时间*/
	private Date deviceBeginTime;
	/**设备使用结束时间*/
    private Date deviceEndTime;
    
    /**设备使用时长（实际时间）：单位毫秒*/
    private Long deviceUseTime;
    
    /**设备使用时长： 单位-分钟，不足一小时的按一分钟计算*/
    private Long deviceUseMin;
    
    /**设备使用时长（实际时间）：xx天  hh：MM：ss：，可按实际需求提供*/
    private String deviceUseTimeStr; 
    
    /**设备使用单价*/
    private Double devicePrice;
    /**设备使用金额*/
    private Double deviceAmount;
    /**所属orderId*/
    private Long orderId;
    /**订单号*/
    private String orderNo;
    /**创建日期*/
	private Date createTime;
	/**墨盒使用情况*/
	private String inkMessage;
	/**墨盒使用总价*/
	private Double inkMoney;
	/**设备sn*/
	private String deviceSn;
    /***
     * 其他消费的配置
     */
	private String otherMessage;
	
	/**
	 * 是否删除0-未删除 1-删除
	 */
	private String delFlag;
	public JiuOrderLog() {
		this.createTime = new Date();
		this.delFlag = DEL_FLAG_NORMAL;
	}

	public JiuOrderLog(Long id){
		this();
		this.id = id;
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@NotNull
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getDeviceBeginTime() {
		return deviceBeginTime;
	}

	public void setDeviceBeginTime(Date deviceBeginTime) {
		this.deviceBeginTime = deviceBeginTime;
	}

	public Date getDeviceEndTime() {
		return deviceEndTime;
	}

	public void setDeviceEndTime(Date deviceEndTime) {
		this.deviceEndTime = deviceEndTime;
	}

	public Long getDeviceUseTime() {
		return deviceUseTime;
	}

	public void setDeviceUseTime(Long deviceUseTime) {
		this.deviceUseTime = deviceUseTime;
	}

	

	public Long getDeviceUseMin() {
		return deviceUseMin;
	}

	public void setDeviceUseMin(Long deviceUseMin) {
		this.deviceUseMin = deviceUseMin;
	}

	public String getDeviceUseTimeStr() {
		return deviceUseTimeStr;
	}

	public void setDeviceUseTimeStr(String deviceUseTimeStr) {
		this.deviceUseTimeStr = deviceUseTimeStr;
	}

	public Double getDevicePrice() {
		return devicePrice;
	}

	public void setDevicePrice(Double devicePrice) {
		this.devicePrice = devicePrice;
	}

	public Double getDeviceAmount() {
		return deviceAmount;
	}

	public void setDeviceAmount(Double deviceAmount) {
		this.deviceAmount = deviceAmount;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getDeviceSn() {
		return deviceSn;
	}

	public void setDeviceSn(String deviceSn) {
		this.deviceSn = deviceSn;
	}

	public String getInkMessage() {
		return inkMessage;
	}

	public void setInkMessage(String inkMessage) {
		this.inkMessage = inkMessage;
	}

	public Double getInkMoney() {
		return inkMoney;
	}

	public void setInkMoney(Double inkMoney) {
		this.inkMoney = inkMoney;
	}

	public String getOtherMessage() {
		return otherMessage;
	}

	public void setOtherMessage(String otherMessage) {
		this.otherMessage = otherMessage;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	
	
}


